import store from "../store/index";
export function buttonPermission(permission){
  //const button = store.getters["appStore/buttons"];//获取 vuex 里面的按钮权限数组
  const button = this.$store.state.auth.user.roleIds;
  return button.indexOf(permission) != -1; //-1是客户没有按钮权限
}
